Observable atomic consistency for CvRDTs

نویسندگان

  • Xin Zhao
  • Philipp Haller
چکیده

The development of distributed systems requires developers to balance the need for consistency, availability, and partition tolerance. The recently proposed Global Sequence Protocol (GSP) provides an abstract, high-level programming model for asynchronous commands between client and server, which provides a foundation for implementations as well as consistency guarantees. In order to enable offline availability, GSP allows a client to read its own writes even when the client is offline. However, this model can give rise to consistency anomalies that are difficult to debug. In this paper we propose a new consistency protocol, the observable atomic consistency protocol (OACP). OACP enables a principled relaxation of consistency to achieve better performance in certain scenarios. OACP combines the advantages of mergeable data types, specifically, convergent replicated data types (CvRDTs), and reliable total order broadcast (RTOB) to provide on-demand strong consistency, avoiding the anomalies of GSP and related protocols. We implement OACP using Akka Cluster, a state-of-the-art actor framework used in popular, large-scale web applications. The paper also presents an experimental comparison of GSP and OACP. Our evaluation shows that OACP is able to provide lower latency and higher throughput than GSP in several benchmarks.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Deterministic Threshold Queries of Distributed Data Structures

Convergent replicated data types, or CvRDTs, are latticebased data structures for enforcing the eventual consistency of replicated objects in a distributed system. Although CvRDTs are provably eventually consistent, queries of CvRDTs nevertheless allow inconsistent intermediate states of replicas to be observed; and although in practice, many systems allow a mix of eventually consistent and str...

متن کامل

Joining Forces Toward a Unified Account of LVars and Convergent Replicated Data Types

LVars—shared memory locations whose semantics are defined in terms of an application-specific lattice—offer a principled approach to deterministic-by-construction, shared-state parallel programming: writes to an LVar take the join of the old and new values with respect to the lattice, while reads from an LVar can observe only that its contents have crossed a specified “threshold” in the lattice...

متن کامل

Generating Litmus Tests for Contrasting Memory Consistency Models

Well-defined memory consistency models are necessary for writing correct parallel software. Developing and understanding formal specifications of hardware memory models is a challenge due to the subtle differences in allowed reorderings and different specification styles. To facilitate exploration of memory model specifications, we have developed a technique for systematically comparing hardwar...

متن کامل

A fuzzy extension of interval-based constraint networks

The aim of this work is to integrate the ideas of flexibility and uncertainty into Allen’s interval-based temporal logic [1], defining a new formalism (IA) which extends classical Interval Algebra (IA). We refer to Dubois, Fargier & Prade approach to Fuzzy Constraint Satisfaction Problem (FCSP ) [3], in which constraints are satisfied to a degree; this framework is based on Fuzzy Sets and Possi...

متن کامل

Allowing Atomic Objects to Coexist with Sequentially Consistent Objects

A concurrent object is an object that can be concurrently accessed by several processes. Two well known consistency criteria for such objects are atomic consistency (also called linearizability) and sequential consistency. Both criteria require that all the operations on all the concurrent objects be totally ordered in such a way that each read operation obtains the last value written into the ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1802.09462  شماره 

صفحات  -

تاریخ انتشار 2018